package net.towee.client.event.core;

import net.towee.model.account.Board;

import com.google.gwt.event.shared.GwtEvent;

public class BoardRemovedEvent extends GwtEvent<BoardRemovedHandler> {
	public static Type<BoardRemovedHandler> TYPE = new Type<BoardRemovedHandler>();
	private final Board board;
	
	public BoardRemovedEvent(Board board) {
		this.board = board;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<BoardRemovedHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(BoardRemovedHandler handler) {
		handler.onBoardRemoved(board);
	}

}
